{literal}
<script>
function updateStatistics(player_id)
{
	
	new Ajax.Updater('statistics_block', '/statistics.php', { method: 'get', parameters: { type: 'defined', value: player_id, to: $('datetimefrom').value, from: $('datetimeto').value}});
	
}
</script>
{/literal} 
<div class="tabbertab" title="Player Statistics">

<div id="layout_main_top">

</div>
<div id="layout_main">

<div id="statistics_select" style="width: 600px; height: 25px; text-align: center;">
			<div style="margin-left: 170px; float: left; color: white;">From: <input type="text" id="datetimefrom" class="text" name="date" value="{$date}"></div>
			<div style="margin-left: 3px; float: left;"><img id="triggerfrom" src="./images/buttons/calendar.png" style="cursor: pointer;" /></img></div>
			<div style="margin-left: 15px; float: left; color: white;">To: <input type="text" id="datetimeto" class="text" name="date" value="{$date}"></div>
			<div style="margin-left: 3px; float: left;"><img id="triggerto" src="./images/buttons/calendar.png" style="cursor: pointer;" /></img></div>
			{dhtml_calendar inputField="datetimefrom" button="triggerfrom" singleClick=false showsTime=false ifFormat="%Y-%m-%d"}
			{dhtml_calendar inputField="datetimeto" button="triggerto" singleClick=false showsTime=false ifFormat="%Y-%m-%d"}
			
			<div style="margin-left: 15px; float: left;"><img src="./images/buttons/arrow_refresh.png" style="cursor: pointer;" onclick="updateStatistics({$player.user_id});" /></img></div>
</div>


	<div id="statistics_block" name="statistics_block">

		<img src='./images/ajax/ajax-loader.gif'/>
	
	</div>

	<div id="legenda_select" style="width: 80%; height: 25px; color: white;">
	<table align="center" width="100%">
	
	<tr>
	<td style="text-align: right;">
		Raid planned
	</td>
	<td style="text-align: center;">
		<img src="./images/layout/redbar.png" style="cursor: pointer;" width="30px" height="15px" />
	</td>
	<td style="text-align: right;">
		Actually received RP for raid
	</td>
	<td style="text-align: center;">
		<img src="./images/layout/yellowbar.png" style="cursor: pointer;" width="30px" height="15px" />
	</td>
	</tr>
	
	<tr>
	<td style="text-align: right;">
		Signed up as Main
	</td>
	<td style="text-align: center;">
		<img src="./images/layout/bluebar.png" style="cursor: pointer;" width="30px" height="15px" />
	</td>
	<td style="text-align: right;">
		Signed up as Substitute
	</td>
	<td style="text-align: center;">
		<img src="./images/layout/greenbar.png" style="cursor: pointer;" width="30px" height="15px" />
	</td>
	</tr>

	
	
	</table>
				<div style="margin-left: 170px; float: left; "><span style="margin-bottom: 30px;"></span></div>
	</div>
	
	<script>
	
		new Ajax.Updater('statistics_block', '/statistics.php', {literal}{{/literal} method: 'get', parameters: {literal}{{/literal}type: 'global', value: {$player.user_id}{literal}}}{/literal});
	
	</script>
</div>
<div id="layout_main_bottom">

</div>

</div>